package br.fabrica.ui.dialog;

import com.sun.lwuit.Dialog;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.animations.CommonTransitions;

public class DialogWarning extends Dialog{

	private TextArea taInfo;
	
	public DialogWarning(String title, String info){
		setTitle(title);
		
		setTransitionInAnimator(CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL
				, false, 450));
		
		taInfo = new TextArea(info);
		taInfo.setEditable(false);
		addComponent(taInfo);
		
		setTransitionOutAnimator(CommonTransitions.createSlide(CommonTransitions.SLIDE_VERTICAL
				, false, 450));
		setTimeout(3000);
		
	}
}
